<?php
function success($data = [] , $msg = '操作成功', $code = 200){
    $arr = [
        'code' => $code
        ,'message' => $msg
        ,'data' => $data
    ];
    return json($arr);
}
function error($msg = '操作失败', $code = 0){
    $arr = [
        'code' => $code
        ,'message' => $msg
    ];
    return json($arr);
    
}
